<div id="zhuanti_container">
<?php foreach ($this->zhuanTiList as $zhuanTi){?>
	<div class="zhuanti">
		<div class="details">
			<img src="<?php echo $this->baseUrl().$zhuanTi['logo']?> " />
			<h5><a href="<?php echo $this->baseUrl().'/zhuanti/'.$zhuanTi['url_spell'].'-zid'.$zhuanTi['id'].'.html'?>" target="_blank"><?php echo $zhuanTi['name']?></a></h5>
			<p><?php echo $zhuanTi['description']?></p>
			<?php if(isset($zhuanTi['details'])){ ?>
			<ul>
			<?php foreach($zhuanTi['details'] as $detail){ ?>
				<?php if(0==$zhuanTi['type']){?>
					<li><a href="<?php echo $this->baseUrl().'/wenzhang/'.$detail['article_url_spell'].'-aid'.$detail['article_id'].'.html' ?>" title="<?php echo $detail['article_title'] ?>" target="_blank"><?php echo $this->restrainName($detail['article_title'], 11) ?></a></li>
				<?php }?>
				
				<?php if(1==$zhuanTi['type']){?>
					<li><a href="<?php echo $this->baseUrl().'/gallery/'.$detail['gallery_url_spell'].'-gid'.$detail['gallery_id'].'.html'?>" title="<?php echo $detail['gallery_title'] ?>" target="_blank"><?php echo $this->restrainName($detail['gallery_title'],11)?></a></li>
				<?php }?>
				
				<?php if(2==$zhuanTi['type']){?>
					<li><a href="<?php echo $this->baseUrl().'/shangpin/'.$detail['item_url_spell'].'-pid'.$detail['num_iid'].'.html'?>" title="<?php echo $detail['title'] ?>" target="_blank"><?php echo $this->restrainName($detail['title'],11)?></a></li>
				<?php }?>
				
				<?php if(3==$zhuanTi['type']){?>
					<li><a href="<?php echo $this->baseUrl().'/zhuanti/'.$detail['url_spell'].'-zid'.$detail['id'].'.html'?>" title="<?php echo $detail['name'] ?>" target="_blank"><?php echo $this->restrainName($detail['name'],11)?></a></li>
			
				<?php }?>
			<?php }?>
			</ul>
			<?php } ?>
		</div>
	</div>
<?php } ?>	

	

</div>